//返回首页
let iconBack = document.querySelector(".app-header .icon-back")
iconBack.onclick = () => {
    location.href = 'City-Travel-homepage.html'
} 

//筛选
let fBtn  = document.querySelector(".rooms-box #detailRoomList .filter .f-btn")
let fClose  = document.querySelector(".rooms-box #detailRoomList .filter-pop-page .close")
fBtn.onclick = () => {
    fBtn.parentNode.nextElementSibling.classList.add("show")
}
fClose.onclick = () => {
    fBtn.parentNode.nextElementSibling.classList.remove("show")
}

//拨打电话
let phoneTxt = document.querySelector(".detail-footer-box .h-phone .txt")
let phonetClose = document.querySelector(".detail-footer-box .phone-pop-model .close")
phoneTxt.onclick = () => {
    // console.log(phoneTxt.parentNode.nextElementSibling);
    phoneTxt.parentNode.nextElementSibling.classList.add("show")
}
phonetClose.onclick = () => {
    phoneTxt.parentNode.nextElementSibling.classList.remove("show")
}